package com.artqiyi.dollmachine.utils.manager;

import com.artqiyi.dollmachine.model.entity.ConfigBean;

/**
 * author: PengCheng
 * time: 2017/12/11 0011
 * desc:
 */

public class ConfigManager {
    private static ConfigManager instance;

    private ConfigBean mConfigBean;

//    private boolean fakePay;      //0是真实支付，1是模拟支付
//
//    private String mall_url;
//
//    private String socket_server_host;
//
    private boolean close_pay;          //是否关闭支付入口
//
//    private String app_name;

    public static ConfigManager getInstance() {
        if (instance == null) {
            synchronized (ConfigManager.class) {
                if (instance == null) {
                    instance = new ConfigManager();
                }
            }
        }
        return instance;
    }

    public ConfigBean getConfigBean() {
        return mConfigBean;
    }

    public void setConfigBean(ConfigBean mConfigBean) {
        this.mConfigBean = mConfigBean;
    }

    //    public boolean getFakePay() {
//        return fakePay;
//    }
//
//    public void setFakePay(boolean fakePay) {
//        this.fakePay = fakePay;
//    }
//
//    public String getMallUrl() {
//        return mall_url;
//    }
//
//    public void setMallUrl(String mallUrl) {
//        this.mall_url = mallUrl;
//    }
//
//    public String getSocketServerHost() {
//        return socket_server_host;
//    }
//
//    public void setSocketServerHost(String socket_server_host) {
//        this.socket_server_host = socket_server_host;
//    }
//
    public boolean getClosePay() {
        return close_pay;
    }

    public void setClosePay(boolean isClosePay) {
        this.close_pay = isClosePay;
    }
//
//    public String getApp_name() {
//        return app_name;
//    }
//
//    public void setApp_name(String app_name) {
//        this.app_name = app_name;
//    }
}
